package com.yty.system.oauth.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class OauthConfig {

    @Value("${oauth.client}")
    private String client;

    @Value("${oauth.secret}")
    private String secret;

    @Value("${oauth.access_token_validity_seconds}")
    private int accessTokenValiditySeconds;

    //配置刷新token的有效期
    @Value("${oauth.refresh_token_validity_seconds}")
    private int refreshTokenValiditySeconds;

}
